import 'package:json_annotation/json_annotation.dart';

import 'EcyGoodsLabelModel.dart';
part 'EcyGoodsLabelListModel.g.dart';

@JsonSerializable()
class EcyGoodsLabelListModel {
  int pages;
  int size;
  int total;
  List<EcyGoodsLabelModel> records;
  EcyGoodsLabelListModel(this.pages, this.size, this.total, this.records);

  // 从JSON创建User实例的工厂方法
  factory EcyGoodsLabelListModel.fromJson(Map<String, dynamic> json) =>
      _$EcyGoodsLabelListModelFromJson(json);

  // 将User实例转换为JSON的方法
  Map<String, dynamic> toJson() => _$EcyGoodsLabelListModelToJson(this);
}
